package com.dries.security.validate.code.impl;

import com.dries.security.validate.code.captcha.SysCaptcha;
import com.dries.security.validate.code.captcha.enums.ValidateCodeType;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * @Description:
 * @Author ZSY
 * @createTime 2020/9/8 15:27
 */
public interface ValidateCodeMapper {

    /***
     * @Description: save 保存验证码
     * @param: [request, code, validateCodeType]
     * @return: void
     * @date: 2019/11/24 18:36
     **/
    void save(ServletWebRequest request, SysCaptcha code, ValidateCodeType validateCodeType);

    /***
     * @Description: get 获取验证码
     * @param: [request, validateCodeType]
     * @return: com.zsycms.security.core.validate.code.ValidateCode
     * @date: 2019/11/24 18:37
     **/
    SysCaptcha get(ServletWebRequest request, ValidateCodeType validateCodeType);

    /***
     * @Description: remove 移除验证码
     * @param: [request, validateCodeType]
     * @return: void
     * @date: 2019/11/24 18:39
     **/
    void remove(ServletWebRequest request, ValidateCodeType validateCodeType);

}
